package com.project.service.imp;

import com.project.bean.MonthCountBean;
import com.project.mapper.IMonthCountMapper;
import com.project.service.IMonthCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class MonthCountServiceImp implements IMonthCountService {
    @Autowired
    private IMonthCountMapper mapper;
    @Override
    public List<String> findYear() {
        return mapper.findYear();
    }

    @Override
    public List<MonthCountBean> countTotal(String year) {
        return mapper.countTotal(year);
    }
}
